﻿using System;
using System.Resources;
using System.Globalization;

namespace Ue.Components.FileResources
{
    public class BinaryResourceManager : FileResourceManager
    {

        public BinaryResourceManager(string resourceDirectory, string resourceFileBaseName)
            : base(resourceDirectory, resourceFileBaseName, ".resources") { }

        protected override ResourceSet InternalGetResourceSet(CultureInfo culture, bool createIfNotExists, bool tryParents)
        {
            return new ResourceSet(this.GetResourceFileName(culture));
        }
    }
}
